<template>
  <div style="width:190px;">
      <div class="wrap" style="width: 100%;
    position: relative;">
          <div class="left-bar" style="width: 2px;
    height: 48px;
    background-color: #00704E;
    position: absolute;"></div>
          <div class="title" style="color: #fff;
    margin-left: 10px;
    margin-bottom: 3px;
    font-size: 14px;">各场馆当前进行比赛项目</div>
          <div class="content" style="width: 90%;
    margin-left: 10px;
    font-size: 12px;
    color: #fff;">
              <div class="item" v-for="item in datalist" :key="item.id" style="padding-top: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);">
                  <div class="top" style="display: flex;
    justify-content: space-between;
    margin-bottom: 8px;">
                      <div>{{item.place}}</div>
                      <div>{{item.timing}}</div>
                  </div>
                  <div class="btm" style="display: flex;
    justify-content: space-between;
    align-items: center;">
                      <img class="icon" :src="item.eventsIcon" alt="" style="width: 20px;
    height: 20px;">
                      <img :src="item.nation[0]" alt="">
                      VS <img :src="item.nation[1]" alt="">
                      <div>{{item.events}}</div>
                  </div>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            datalist: [
                {
                    place: '国家体育馆', //比赛场馆
                    timing: '10:00 - 11:30', //比赛时间段
                    eventsIcon: require('../assets/2.png'), //比赛项目图标
                    nation: [require('../assets/23.png'),require('../assets/23.png')], //比赛的两个国家国旗图标
                    events: '短道速滑', //比赛项目
                },
                {
                    place: '五棵松体育馆', 
                    timing: '10:00 - 12:00', 
                    eventsIcon: require('../assets/2.png'),
                    nation: [require('../assets/23.png'),require('../assets/23.png')], 
                    events: '花样滑冰', 
                },
                {
                    place: '五棵松体育馆', 
                    timing: '10:00 - 12:00', 
                    eventsIcon: require('../assets/2.png'),
                    nation: [require('../assets/23.png'),require('../assets/23.png')], 
                    events: '花样滑冰', 
                },
                {
                    place: '五棵松体育馆', 
                    timing: '10:00 - 12:00', 
                    eventsIcon: require('../assets/2.png'),
                    nation: [require('../assets/23.png'),require('../assets/23.png')], 
                    events: '花样滑冰', 
                },
            ]
        }
    },
}
</script>

<style>
/* .wrap{
    width: 100%;
    position: relative;
}
.left-bar{
    width: 2px;
    height: 60px;
    background-color: #00704E;
    position: absolute;
}
.title{
    color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.content{
    width: 90%;
    margin-left: 10px;
    font-size: 12px;
    color: #fff;
}
.item{
    padding-top: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.top{
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.btm{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.icon{
    width: 20px;
    height: 20px;
} */
</style>